{layout name="p/base"}
    <div class="row">
      <div class="col-lg-12">
        <h1>管理员管理 <small>管理员信息列表</small></h1>
        <ol class="breadcrumb">
          <li><a href="/manager/index"><i class="fa fa-dashboard"></i> 管理首页</a></li>
          <li class="active"><i class="fa fa-table"></i> 管理员信息列表</li>
        </ol>
        <div class="alert alert-success alert-dismissable">
          <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
          这里可以添加、修改、删除管理员信息 
        </div>
      </div>
    </div>
    <!-- /.row -->
    <div class="row">
      <div class="col-lg-12">
        <div class="form-group input-group" style="width:50%;float:right;">
          <input class="form-control" type="text" placeholder="用户名/角色/手机号码/地区">
          <span class="input-group-btn">
            <button class="btn btn-default">搜索</button>
          </span>
        </div>
        <div class="btn-group">
          <a href="/manager/addmanager" class="btn btn-primary">添加管理员</a>
        </div>
        <div class="btn-group">
          <button type="button" id="del" class="btn btn-default">删除</button>
        </div>
        <div class="btn-group">
          <button type="button" id="setstaut" class="btn btn-default">锁定</button>
        </div>
        <div class="btn-group">
          <button type="button" id="removestaut" class="btn btn-default">解除锁定</button>
        </div>
        <div class="table-responsive">
      <form class="form-horizontal" role="form" id="manager_list"  method="post">
          <table class="table table-bordered table-hover table-striped tablesorter">
            <thead>
              <tr>
                <th><div class="checker"><span><input type="checkbox" name=""></span></div></th>
                <th>账号</th>
                <th>负责人姓名</th>
                <th>联系电话</th>
                <th>邮箱地址</th>
                <th>通讯地址</th>

                <th>状态</th>
                <th>操作</th>
              </tr>
            </thead>
            <tbody>
              {volist name="list" id="vo"}
              <tr>
                <td><div class="checker"><span><input type="checkbox" name="ids[]" value="{$vo.id}"></span></div></td>
                <td>{$vo.branch_num}</td>
                <td>{$vo.name}</td>
                <td>{$vo.phone}</td>
                <td>{$vo.email}</td>
                <td>{$vo.address}</td>
                <td>{$vo->getManagerStatus($vo.status)}</td>
                <td><a href="/manager/{$vo.id}/ReadInfo">查看</a></td>
              </tr>
              {/volist}
            </tbody>
          </table>
        </form>
        </div> 
      </div>
    </div>

<script type="text/javascript" src="/jquery.js"></script>
    <script type="text/javascript">
      $(document).ready(function(){
        //删除
        $("#del").click(function(){
        $("#manager_list").attr('action','/manager/delinfo');
        $("#manager_list").submit();
          });
        //锁定
        $("#setstaut").click(function(){
        $("#manager_list").attr('action','/manager/setstatus');
        $("#manager_list").submit();
          });
        //解除锁定
        $("#removestaut").click(function(){
        $("#manager_list").attr('action','/manager/removestatus');
        $("#manager_list").submit();
          });

        });
      
</script>